package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 散户生产任务对象 sys_retail_task
 *
 * @author ruoyi
 * @date 2024-07-25
 */
public class SysRetailTask extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 散户id
     */
    @Excel(name = "散户id")
    private Long rId;

    @Excel(name = "散户负责人")
    private String rContact;

    /**
     * 订单id
     */
    @Excel(name = "订单id")
    private Long oId;

    @Excel(name = "订单号")
    private String orderNum;

    /**
     * 计划工时
     */
    @Excel(name = "计划工时")
    private Long planHours;

    private Long supplierId;

    /**
     * 结束日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date finishDate;

    /**
     * 任务数量
     */
    @Excel(name = "任务数量")
    private Long taskQuantity;

    /**
     * 任务状态（0未完成，1已完成）
     */
    @Excel(name = "任务状态", readConverterExp = "0=未完成，1已完成")
    private String taskStatus;

    public void setrId(Long rId) {
        this.rId = rId;
    }

    public Long getrId() {
        return rId;
    }

    public void setoId(Long oId) {
        this.oId = oId;
    }

    public Long getoId() {
        return oId;
    }

    public void setTaskQuantity(Long taskQuantity) {
        this.taskQuantity = taskQuantity;
    }

    public Long getTaskQuantity() {
        return taskQuantity;
    }

    public void setTaskStatus(String taskStatus) {
        this.taskStatus = taskStatus;
    }

    public String getTaskStatus() {
        return taskStatus;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public String getrContact() {
        return rContact;
    }

    public void setrContact(String rContact) {
        this.rContact = rContact;
    }

    public Long getPlanHours() {
        return planHours;
    }

    public void setPlanHours(Long planHours) {
        this.planHours = planHours;
    }

    public Date getFinishDate() {
        return finishDate;
    }

    public void setFinishDate(Date finishDate) {
        this.finishDate = finishDate;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("rId", getrId())
                .append("rContact", getrContact())
                .append("oId", getoId())
                .append("oNum", getOrderNum())
                .append("taskQuantity", getTaskQuantity())
                .append("taskStatus", getTaskStatus())
                .append("planHours", getPlanHours())
                .append("finishDate", getFinishDate())
                .append("supplierId", getSupplierId())
                .toString();
    }
}
